import Vue from 'vue'
import navbar from './components/NavBar.vue'
import router from './router'
import store from './store'
import VueResource from 'vue-resource'; //同步
Vue.use(VueResource);

Vue.config.productionTip = false

new Vue({
	el: '#app',
	router,
	store,
	template: `
		<div>
     		 <keep-alive>
				<router-view ></router-view>
			</keep-alive>
     		<navbar v-show="navbarshow"></navbar>
     	</div>	
  `,
	components: {
		navbar
	},
	computed: {
		navbarshow() {
			return this.$store.state.isshow.navBarShow;
		}
	}
})